Elements of Stream Calculus (An Extensive Exercise in Coinduction)
نویسنده
چکیده
Elements of stream calculus (an extensive exercise in coinduction) CWI's research has a theme-oriented structure and is grouped into four clusters. Listed below are the names of the clusters and in parentheses their acronyms. ABSTRACT Based on the presence of a nal coalgebra structure on the set of streams innnite sequences of real numbers, a coinductive calculus of streams is developed. The main ingredient is the notion of stream derivative, with which both coinductive proofs and deenitions can be formulated. In close analogy to classical analysis, the latter are presented as behavioural diierential equations. A number of applications of the calculus are presented, including diierence equations, analytical diierential equations, continued fractions, and some problems from discrete mathematics and combinatorics. 1 Contents 1 Introduction 3 2 Streams and coinduction 4 3 Behavioural diierential equations 6 4 Basic stream calculus 8 5 Solving behavioural diierential equations 17 6 Application: solving diierence equations 19 7 Solving quadratic equations in stream calculus 21 8 Shuue product and shuue inverse 24 9 Application: a d i v ergent recurrence 27 10 Comparing convolution product and shuue product 28 11 Application: a generalised Euler formula 31 12 Application: solving analytical diierential equations 32 13 Weighted stream automata 37 14 Multivariate streams 43 15 Multivariate stream calculus 45 16 Weighted automata for multivariate streams 46 17 Application: coinductive counting 47 18 Discussion and related work 50 19 Appendix 52
منابع مشابه
An exercise in coinduction: Moessner’s theorem
We present a coinductive proof of Moessner’s theorem. This theorem describes the construction of the stream (1n, 2n, 3n, . . .) (for n ≥ 1) out of the stream of natural numbers by repeatedly dropping and summing elements. Our formalisation consists of a direct translation of the operational description of Moessner’s procedure into the equivalence of in essence two functional programs. Our proof...
متن کاملConcrete stream calculus: An extended study
This paper shows how to reason about streams concisely and precisely. Streams, infinite sequences of elements, live in a coworld: they are given by a coinductive datatype, operations on streams are implemented by corecursive programs, and proofs are typically concocted using coinduction. This paper offers an alternative to coinduction. Suitably restricted, stream equations possess unique soluti...
متن کاملSampling, Splitting and Merging in Coinductive Stream Calculus
We study various operations for partitioning, projecting and merging streams of data. These operations are motivated by their use in dataflow programming and the stream processing languages. We use the framework of stream calculus and stream circuits for defining and proving properties of such operations using behavioural differential equations and coinduction proof principles. We study the inv...
متن کاملA tutorial on coinductive stream calculus and signal flow graphs
This paper presents an application of coinductive stream calculus to signal flow graphs. In comparison to existing approaches, which are usually based on Z-transforms (a discrete version of Laplace transforms) and transfer functions, the model presented in these notes is very elementary. The formal treatment of flow graphs is interesting because it deals with two fundamental phenomena in the th...
متن کاملThe Differential Calculus of Bitstreams ( extended
CWI's research has a theme-oriented structure and is grouped into four clusters. Listed below are the names of the clusters and in parentheses their acronyms. The Differential Calculus of Bitstreams (extended abstract) ABSTRACT Using (stream) differential equations for definitions and coinduction for proofs, we define, analyse, and relate in a uniform way four different algebraic structures on ...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
- Electr. Notes Theor. Comput. Sci.
دوره 45 شماره
صفحات -
تاریخ انتشار 2001